<div class="nav">
    <a href="{$list_url|urldecode}">返回列表</a>
    <a class="sel" href="#">详细信息</a>
</div>
<div>
    <h3  class="table_order_h">申请商品</h3>
    <table class="table_order_info">
        <tr><td><img src="__ROOT__{$order_goods.goods_picture|str_replace='products','products/thumb',###}" width="180"  alt="{$order_goods.goods_name}"/></td>
            <td>
                <h2>{$order_goods.goods_name}</h2>
                <p>产品编号：<span>{$order_goods.goods_sn}</span></p>
                <p>购买数量：<span>{$order_goods.goods_num}</span></p>
                <p>购买单价：<span>￥{$order_goods.goods_price}</span></p>
                <p>{$order_goods.goods_spec}</p>
            </td>
        </tr>
    </table>
    <br>
    <h3  class="table_order_h">提交信息</h3>
    <table class="table_order_info">
        <tr><td style="width:100px;">选择类型：</td><td> {$model.type} </td></tr>
        <tr><td>售后状态：</td><td> {$model.str_status}  {$model.str_status_pay} &nbsp; <span id="btn_action"></span>
            </td></tr>
        <tr><td>售后编号：</td><td> {$model.back_no} </td></tr>
        <tr><td>订单编号：</td><td> {$model.order_no}</td></tr>
        <tr><td>申请数量：</td><td> {$model.goods_num} </td></tr>
        <tr><td>商品外观：</td><td> {$model.waiguan} </td></tr>
        <tr><td>商品包装：</td><td> {$model.baozhuang}</td></tr>
        <tr><td>申请凭证：</td><td> {$model.pinzheng}</td></tr>
        <tr><td>申请原因：</td><td> {$model.detail}</td></tr>
        <tr><td>联系人：</td><td> {$model.addr_realname}</td></tr>
        <tr><td>联系电话：</td><td> {$model.addr_tel}</td></tr>
        <tr><td>联系地址：</td><td> {$model.addr_address}</td></tr>

    </table>
    <input type="hidden" name="id" id="id" value="{$model.id}" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/common/artDialog6/css/ui-dialog.css" />
    <script type="text/javascript" src="__PUBLIC__/common/artDialog6/dist/dialog-min.js"></script>
    <script type="text/javascript">
        var id = $("#id").val();
        var url_get_btn = "{:U('get_btn',array('id'=>$model['id']))}";//获得操作按钮地址
        var url_confirm_2 = "{:U('confirm_2',array('id'=>$model['id']))}";//审核通过地址
        var url_confirm_4 = "{:U('confirm_4',array('id'=>$model['id']))}";//商品已回寄地址
        var url_confirm_5 = "{:U('confirm_5',array('id'=>$model['id']))}";//处理完成地址
        var url_confirm_6 = "{:U('confirm_6',array('id'=>$model['id']))}";//审核不通过地址
        var url_pay_2 = "{:U('pay_2',array('id'=>$model['id']))}";//退款地址
        //获取操作按钮
        function get_btn() {
            $("#btn_action").load(url_get_btn,{n:Math.random()});
        }
        get_btn();
        
        //审核通过
        function confirm_2() {
            var d = dialog({
                title: '系统提示'
            });
            d.content('<img src="'+root+'/Public/system/images/ajax_loading.gif" />正在操作中...，请稍等！');
            d.show();
            $.getJSON(url_confirm_2,function(json){
                if(json.status == 'success') {
                    d.content('操作成功');
                    document.location.reload();
                } else {
                    d.content('操作失败：'+json.msg);
                }
            });
        }
        
        //审核不通过
        function confirm_6() {
            var d = dialog({
                title: '系统提示'
            });
            d.content('<img src="'+root+'/Public/system/images/ajax_loading.gif" />正在操作中...，请稍等！');
            d.show();
            $.getJSON(url_confirm_6,function(json){
                if(json.status == 'success') {
                    d.content('操作成功');
                    document.location.reload();
                } else {
                    d.content('操作失败：'+json.msg);
                }
            });
        }
        
        //确定商品已回寄
        function confirm_4() {
            var d = dialog({
                title: '系统提示'
            });
            d.content('<img src="'+root+'/Public/system/images/ajax_loading.gif" />正在操作中...，请稍等！');
            d.show();
            $.getJSON(url_confirm_4,function(json){
                if(json.status == 'success') {
                    d.content('操作成功');
                    document.location.reload();
                } else {
                    d.content('操作失败：'+json.msg);
                }
            });
        }
        
        //已处理完成
        function confirm_5() {
            var d = dialog({
                title: '系统提示'
            });
            d.content('<img src="'+root+'/Public/system/images/ajax_loading.gif" />正在操作中...，请稍等！');
            d.show();
            $.getJSON(url_confirm_5,function(json){
                if(json.status == 'success') {
                    d.content('操作成功');
                    document.location.reload();
                } else {
                    d.content('操作失败：'+json.msg);
                }
            });
        }
        
        //已处理完成
        function pay_2() {
            var d = dialog({
                title: '系统提示'
            });
            d.content('<img src="'+root+'/Public/system/images/ajax_loading.gif" />正在操作中...，请稍等！');
            d.show();
            $.getJSON(url_pay_2,function(json){
                if(json.status == 'success') {
                    d.content('操作成功');
                    document.location.reload();
                } else {
                    d.content('操作失败：'+json.msg);
                }
            });
        }
        
        
    </script>

</div>
